package com.onlinevideo.dao;


import com.onlinevideo.entity.User;

import java.util.List;

public interface UserDao extends PageBase<User> {

    int insert(User user);

    int delete(Long id);

    int update(User user);

    User queryById(Long id);

    List<User> queryAll();

    User queryByUsernameAndPassword(User user);

    Long queryByUsername(String username);

    Long queryByMaxId();

    List<User> queryDynamic(User user);

    List<User> queryLike(String username,String phone);
}
